home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 7
/
Amiga Format AFCD07 (Dec 1996, Issue 91).iso
/
serious
/
shareware
/
programming
/
aros
/
exec
/
addresource.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-09-12
|
1KB
|
71 lines
/*
(C) 1995-96 AROS - The Amiga Replacement OS
$Id: addresource.c,v 1.4 1996/08/13 13:55:56 digulla Exp $
$Log: addresource.c,v $
Revision 1.4 1996/08/13 13:55:56 digulla
Replaced __AROS_LA by __AROS_LHA
Replaced some __AROS_LH*I by __AROS_LH*
Sorted and added includes
Revision 1.3 1996/08/01 17:41:02 digulla
Added standard header for all files
Desc:
Lang: english
*/
#include <exec/execbase.h>
#include <aros/libcall.h>
/*****************************************************************************
NAME */
#include <clib/exec_protos.h>
__AROS_LH1(void, AddResource,
/* SYNOPSIS */
__AROS_LHA(APTR, resource, A1),
/* LOCATION */
struct ExecBase *, SysBase, 81, Exec)
/* FUNCTION
Adds a given resource to the system's resource list.
INPUTS
resource - Pointer to a ready for use resource.
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
RemResource(), OpenResource()
INTERNALS
HISTORY
******************************************************************************/
{
__AROS_FUNC_INIT
/* Just in case the user forgot them */
((struct Node *)resource)->ln_Type=NT_RESOURCE;
/* Arbitrate for the resource list */
Forbid();
/* And add the resource */
Enqueue(&SysBase->ResourceList,(struct Node *)resource);
/* All done. */
Permit();
__AROS_FUNC_EXIT
} /* AddResource */